package com.wise.summer.v1.portal.content.dealers;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.restful.PageParamGitHub;
import com.wise.framework.restful.PageResultList;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.DealerSearchTypeEnum;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import java.util.List;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Getter
@Setter
@ApiInfo("获取经销商列表")
@SkipUserAuth
@Publish
public class ListDealers extends PageParamGitHub<PageResultList<ListDealers.Result>> {

    @ApiInfo("区域编号")
    private String areaCode;

    @ApiInfo("经销商名")
    private String dealerName;

//    @ApiInfo("搜索类型")
//    private Integer type = DealerSearchTypeEnum.FIRST.value();

    @ApiInfo("经销商名")
    private String city;
    @ApiInfo("产品类别id")
    private String dealerType;

    @ApiInfo("是否推荐推荐")
    private Integer recommend;


    @Getter
    @Setter
    @Builder
    public static class Result {
        @Tolerate
        public Result() {

        }
        @ApiInfo("经销商名")
        @Column("dealer_name")
        private String dealerName;

        @ApiInfo("渠道授权编号")
        @Column("auth_code")
        private String authCode;

        @ApiInfo("区域编号")
        @Column("area_code")
        private String areaCode;
        @ApiInfo("市")
        @Column("city")
        private String city;

        @ApiInfo("经销商类型")
        @Column("type")
        private String type;
        @ApiInfo("经销商类型2")
        @Column("type2")
        private String type2;

        @ApiInfo("首页推荐")
        @Column("home_recommend")
        private Integer homeRecommend;

        @ApiInfo("首页推荐")
        @Column("condition01")
        private Integer condition01;

        @ApiInfo("前端用于判断的")
        private boolean isHardCode;

    }
}
